home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_cyn_fallcam.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  72 lines

  1. # Jones 3D Cog Script
  2. #
  3. # cyn_fallCam.cog
  4. #
  5. # This cog will cause a groovy camera shot when going over the falls
  6. #
  7. # [CM]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14. #.......................... MESSAGES .....................
  15.     message        startup
  16.     message        entered
  17.     
  18. #.......................... ACTORS .....................
  19.     thing        player                                local
  20.  
  21. #.......................... CAMERAS .....................
  22.     thing        theCam
  23.     thing        endPos
  24.  
  25. #.......................... TRIGGERS .....................
  26.     sector        triggerSECT
  27.  
  28. end
  29. # ========================================================================================
  30. code
  31.  
  32.  
  33. startup:
  34.  
  35.     player=GetLocalPlayerThing();
  36.  
  37. return;
  38.  
  39. # ========================================================================================
  40. entered:
  41.  
  42.     if (GetSenderRef() != triggerSECT) return;
  43.     if (GetSourceRef() != player) return;
  44.     
  45.     # lock out player control
  46.     StartCutScene(1);
  47.     SetActorFlags(player, 0x200000);
  48.     
  49.     # cut the cam out
  50.     SetCameraFocus(2, theCam);
  51.     SetCameraSecondaryFocus(2, player);
  52.     SetCurrentCamera(2);
  53.     Sleep(2.0);
  54.     
  55.     # restore
  56.     ClearActorFlags(player, 0x200000);
  57.     SetCameraPosition(1, GetThingPos(endPos));
  58.     SetCurrentCamera(1);
  59.     RestoreExtCam();
  60.     EndCutscene();
  61.  
  62.     return;
  63.  
  64. # ========================================================================================
  65. end
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.